﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using 数据函数库;
using WFNetLib.TCP;

namespace 温室大棚
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }
        public void tcpAsyncServer_ReceiveServerEvent(object sender, ReceiveServerEventArgs e)
        {
            this.Invoke((EventHandler)(delegate
            {
                TcpPacket[] rxList = (TcpPacket[])e.netPacket;
                foreach (TcpPacket rx in rxList)
                {
                    textBox1.AppendText(WFNetLib.Strings.StringsFunction.byteToHexStr(rx.AllData, " ") + "\r\n");
                }
            }));
        }     
    }
}
